package com.google.jessewilson.codesearch.ui;

import com.google.jessewilson.codesearch.api.QueryResponse;

import java.util.List;

/**
 * Context for the view for a collection of results.
 *
 * @author jessewilson
 */
public interface ResultsPanelContext<T> {

  ResultActionsProvider getResultActionsProvider();

  void close(T source);

  /**
   * List all open results.
   */
  List<QueryResponse> getAllResults();

}
